package demo.day02

// 12 kotlin中参数的默认参数
fun main() {
    action01("小明", 18)
    action02("老红")
    action03()
    action03("老王",55)
}

private fun action01(name: String, age: Int) {
    println("我的姓名是${name},年龄是${age}")
}

private fun action02(name: String, age: Int = 77) {
    println("我的姓名是${name},年龄是${age}")
}

private fun action03(name: String = "老明", age: Int = 67) {
    println("我的姓名是${name},年龄是${age}")
}